<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.core.js"></script> -->
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.core.min.js"></script> -->

  <body>
    <script src="./lodash.core.js"></script>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.3/lodash.core.js"></script> -->
    <script>
      console.log(_);
      //compact
      console.log(_.compact([0, 1, false, 2, '', 3]));

      //chunk
      // console.log(_.chunk(['a', 'b', 'c', 'd', 'e', 'f', 'g'], 3));

      _.chunk(['a', 'b', 'c', 'd'], 2);
      // => [['a', 'b'], ['c', 'd']]

      _.chunk(['a', 'b', 'c', 'd'], 3);
      // => [['a', 'b', 'c'], ['d']]
    </script>
  </body>
</html>
